package com.xit.cloud.vm;


import com.vmware.vim25.mo.ServiceInstance;

import java.net.MalformedURLException;
import java.net.URL;

public class SampleUtil {

	public static ServiceInstance createServiceInstance() throws Exception, MalformedURLException {
	   ServiceInstance si = new ServiceInstance(new URL("https://192.168.16.128/sdk"), "root", "q2k0f0n3WZG", true);
	   si.getSessionManager().setLocale("zh-CN"); // set locale for the content of all API result.
	   return si;
	}
}
